<!-- BEGIN:main -->
<script type="text/javascript">
    function check_login(){
        if (document.getElementById("username").value=="" || document.getElementById("passwordtemplate").value=="" ){
            alert("Enter username & password!");
            return false;
        }
        return true;
    }
</script>
<div id="page_title">
    <h2>Administrator Panel</h2>
</div>

{MSG}
<form action="" method="POST" onsubmit="return check_login()">
    <div id="login" class="panel">
        <label for="username">Username:</label>
        <input type="text" name="username" id="username" maxlength="30" size="40" value=""/><br>
        <label for="password">Password:</label>
        <input type="password" name="passwordtemplate" id="passwordtemplate" maxlength="50" size="40" value=""/><br>
        <input type="hidden" name="password" id="password" value="" />        
        <input class="button" type="submit" name="submit" onclick="this.form.password.value=MD5(this.form.passwordtemplate.value)" value="Login"/>
    </div>
</form>
<!--
<form action="" method="POST" onsubmit="return check_login()">
    <div id="login" class="panel">
        <label for="username">Username:</label>
        <input type="text" name="username" id="username" maxlength="30" size="40" value=""/><br>
        <label for="password">Password:</label>
        <input type="password" name="password" id="password" maxlength="50" size="40"value=""/> <br>
        <input class="button" type="submit" name="submit" value="Login"/>
    </div>
</form>-->
<!-- END:main -->
